class Animail():
    def __init__(self,name,age):
        self.name=name
        self.__age=age

    def eat(self):
        print("在吃东西......")

    def __test(self):
        print("这是父类的私有方法")

class  Cat(Animail):

    def __init__(self, name, age, color='黄色'):
        super(Cat, self).__init__(name, age)
        self.color = color

    def eat(self):
        super().eat()
        print("吃的是一条小鱼")

dahuang = Cat('大黄', 3)
# print(dahuang.name)
# print(dahuang.color)
dahuang.eat()
Animail.eat(dahuang)